/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mop.dinnerbook.bean;

/**
 *子项目组类
 * @author Huge Laurie
 */
public class Department implements Comparable{
    private int did;//子项目组ID
    private String dname;//子项目组名称
    private String remark;//子项目组备注信息

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int compareTo(Object o) {
        if(!(o instanceof Department)){
            throw new RuntimeException("Department compare error！");
        }
        Department other = (Department)o;
        return this.did - other.did;
    }
    
}
